package wqlbatisplus.batispluswql.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author wql
 * @version 1.0
 * @date 2022/11/19 15:52
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("用户对象")
@TableName(value = "t_user")
public class User {
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "编号",required = true)
    private Integer id;
    @ApiModelProperty(value = "姓名",required = true)
    //规定字段名 名字一样不写也行，这里只是练手
    @TableField(value = "username")
    private String username;
    @ApiModelProperty(value = "密码",required = true)
    private String password;
    @ApiModelProperty(value = "真实姓名",required = true)
    private String realname;

}